from django.db import models

class BaseModel(models.Model):
    """luffy中所有模型类的父类"""
    created_time = models.TimeField(verbose_name="创建时间", auto_now_add=True)
    updated_time = models.DateTimeField(verbose_name="最后更新时间", auto_now=True)
    is_delete = models.BooleanField(verbose_name="是否已被删除", default=False)
    is_show = models.BooleanField(verbose_name="是否要被展示", default=True)
    orders = models.IntegerField(verbose_name="展示顺序",null=True)

    class Meta:
        abstract = True